package com.caifu.mapper;

import com.caifu.pojo.YlLaboratoryInspect;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Lyf
 * @since 2020-11-20
 */
public interface YlLaboratoryInspectMapper extends BaseMapper<YlLaboratoryInspect> {

    @Select("select b.check_name as name,a.text from yl_laboratory_inspect a left join yl_check_info b on a.type = b.check_no where a.batch_no = #{batchNo} order by a.sort")
    List<Map<String, String>> getLaboratoryRecord(@Param("batchNo") String batchNo);
}
